package com.xbq.exceleditor.ui.filechooser;


import androidx.annotation.Keep;
import androidx.annotation.NonNull;

import java.io.File;
import java.net.URI;

/**
 * Author: liaohaiping
 * Time: 2019-01-12
 * Description:
 */
@Keep
public class ExtFile extends File {
    private String extension;
    private long fileSize;
    private long fileTime;

    public ExtFile(@NonNull String pathname) {
        super(pathname);
    }

    public ExtFile(String parent, @NonNull String child) {
        super(parent, child);
    }

    public ExtFile(File parent, @NonNull String child) {
        super(parent, child);
    }

    public ExtFile(@NonNull URI uri) {
        super(uri);
    }

    public String getExtension() {
        return extension;
    }

    public ExtFile setExtension(String extension) {
        this.extension = extension;
        return this;
    }

    public long getFileSize() {
        return fileSize;
    }

    public ExtFile setFileSize(long fileSize) {
        this.fileSize = fileSize;
        return this;
    }

    public long getFileTime() {
        return fileTime;
    }

    public ExtFile setFileTime(long fileTime) {
        this.fileTime = fileTime;
        return this;
    }
}
